mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
remove unnecessary double confirm
This commit is contained in:
@@ -90,11 +90,9 @@ const CryptoWalletsForm = ({ account }: { account: Account | undefined }) => {
|
||||
const _removeWallet = (index: number) => {
|
||||
const wallet = walletsArray[index];
|
||||
if (window.confirm(t('delete_confirm', { value: wallet.chainTicker, interpolation: { escapeValue: false } }))) {
|
||||
if (window.confirm(t('double_confirm'))) {
|
||||
const newArray = [...walletsArray.slice(0, index), ...walletsArray.slice(index + 1)];
|
||||
setWalletsArray(newArray);
|
||||
setSelectedWallet(0);
|
||||
}
|
||||
const newArray = [...walletsArray.slice(0, index), ...walletsArray.slice(index + 1)];
|
||||
setWalletsArray(newArray);
|
||||
setSelectedWallet(0);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user