Skip to content

Commit

Permalink
fix: pass missing network to SendNft
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet committed Feb 13, 2024
1 parent 63f5cd5 commit 0cf3233
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions apps/ui/src/components/EditorExecution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ watch(model.value, () => {
v-if="currentTreasury"
:open="modalOpen.sendNft"
:address="currentTreasury.wallet"
:network="currentTreasury.network"
:initial-state="modalState.sendNft"
@close="modalOpen.sendNft = false"
@add="addTx"
Expand Down
18 changes: 8 additions & 10 deletions apps/ui/src/components/Modal/SendNft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ const RECIPIENT_DEFINITION = {
examples: ['Address or ENS']
};
const props = defineProps({
open: Boolean,
address: {
type: String,
required: true
},
initialState: Object
});
const props = defineProps<{
open: boolean;
address: string;
network: number;
initialState?: any;
}>();
const formValidator = getValidator({
$async: true,
Expand Down Expand Up @@ -63,7 +61,7 @@ const formValid = computed(
function handlePickerClick(type: 'nft' | 'contact') {
if (type === 'nft' && !loaded.value) {
loadNfts(props.address);
loadNfts(props.address, props.network);
}
showPicker.value = true;
Expand Down Expand Up @@ -98,7 +96,7 @@ watch(
form.amount = props.initialState.amount;
if (!loaded.value) {
loadNfts(props.address);
loadNfts(props.address, props.network);
}
} else {
form.to = DEFAULT_FORM_STATE.to;
Expand Down
1 change: 1 addition & 0 deletions apps/ui/src/views/Space/Treasury.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ watchEffect(() => setTitle(`Treasury - ${props.space.name}`));
<ModalSendNft
:open="modalOpen.nfts"
:address="treasury.wallet"
:network="treasury.network"
@close="modalOpen.nfts = false"
@add="addTx"
/>
Expand Down

0 comments on commit 0cf3233

Please sign in to comment.