Skip to content

Commit

Permalink
handle if multiple safes with same address
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteenkamp89 committed Apr 16, 2024
1 parent 774cac8 commit a8195ae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/oSnap/components/Input/SelectSafe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ const isModalOpen = ref(false);
<div class="mb-2">
<TuneButtonSelect
:model-value="
safes.find(safe => safe.safeAddress === selectedSafe?.safeAddress)
?.safeName || 'Select Safe'
safes.find(
safe =>
safe.safeAddress === selectedSafe?.safeAddress &&
safe.network === selectedSafe.network
)?.safeName || 'Select Safe'
"
@select="isModalOpen = true"
/>
Expand Down

0 comments on commit a8195ae

Please sign in to comment.