diff --git a/src/plugins/oSnap/Create.vue b/src/plugins/oSnap/Create.vue index f19d59b3..de69d1b7 100644 --- a/src/plugins/oSnap/Create.vue +++ b/src/plugins/oSnap/Create.vue @@ -172,11 +172,11 @@ onMounted(async () => { (); // VARS -const configuredSafe = ref(null); +const configuredSafe = ref(); const tokens = ref([]); const collectibles = ref([]); const isLoading = ref(false); @@ -24,20 +24,20 @@ const isLoading = ref(false); // emits an event with the shape expected by the parent of the plugin component const emit = defineEmits<{ - updateSafe: [value: GnosisSafe, index: number]; + updateSafe: [value: GnosisSafe]; addSafe: [value: GnosisSafe]; - removeSafe: [value: number]; + removeSafe: []; }>(); // METHODS function update(newlyConfiguredSafe: GnosisSafe) { - emit('updateSafe', newlyConfiguredSafe, props.safeIndex); + emit('updateSafe', newlyConfiguredSafe); } // METHODS function removeSafe() { if (configuredSafe.value) { - emit('removeSafe', props.safeIndex); + emit('removeSafe'); } } @@ -49,7 +49,7 @@ function replaceSafe(safe: GnosisSafe | null) { } function addTransaction(transaction: Transaction) { - if (configuredSafe.value === null) return; + if (!configuredSafe.value) return; configuredSafe.value.transactions.push(transaction); } @@ -108,8 +108,8 @@ onMounted(async () => {

Add oSnap transactions

Pick a safe