Skip to content

Commit 08f0231

Browse files
committed
fix: transaction id is not required when removing payment provider
Signed-off-by: Rakib Ansary <[email protected]>
1 parent 11f4bfe commit 08f0231

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/apps/wallet/src/home/tabs/payments/PaymentsTab.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,6 @@ const PaymentsTab: FC = () => {
198198
}
199199
}}
200200
onRemoveProvider={async function onRemoveProvider() {
201-
const transactionId = selectedPaymentProvider.transactionId
202-
if (transactionId === undefined) {
203-
toast.error(
204-
'Something went wrong. Please try again.',
205-
{ position: toast.POSITION.BOTTOM_RIGHT },
206-
)
207-
return
208-
}
209-
210201
try {
211202
// eslint-disable-next-line max-len
212203
const response: TransactionResponse = await removePaymentProvider(selectedPaymentProvider.type)

0 commit comments

Comments
 (0)