Skip to content

Commit

Permalink
Merge pull request #29 from stellar/new-disbursement-enabled-wallets-…
Browse files Browse the repository at this point in the history
…only

New disbursement: show only enabled wallets in dropdown
  • Loading branch information
marwen-abid authored Oct 18, 2023
2 parents 84f3036 + b74ba56 commit 60198de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/DisbursementDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,13 @@ export const DisbursementDetails: React.FC<DisbursementDetailsProps> = ({
disabled={wallets.status === "PENDING"}
>
{renderDropdownDefault(wallets.status === "PENDING")}
{wallets.items.map((wallet: ApiWallet) => (
<option key={wallet.id} value={wallet.id}>
{wallet.name}
</option>
))}
{wallets.items
.filter((wallet) => wallet.enabled)
.map((wallet: ApiWallet) => (
<option key={wallet.id} value={wallet.id}>
{wallet.name}
</option>
))}
</Select>

<Select
Expand Down

0 comments on commit 60198de

Please sign in to comment.