()
@@ -107,6 +109,7 @@ export const ReceivePage = ({ walletFileName }: ReceivePageProps) => {
}
const fetchNewAddress = async () => {
+ if (rescanInfo.rescanning) return
await getAddressMutation.mutateAsync()
}
@@ -132,7 +135,7 @@ export const ReceivePage = ({ walletFileName }: ReceivePageProps) => {
variant={jarButtonVariant(selectedSourceJarIndex)}
size="lg"
onClick={() => void fetchNewAddress()}
- disabled={getAddressMutation.isPending}
+ disabled={getAddressMutation.isPending || rescanInfo.rescanning}
>
{t('receive.button_reveal_address')}
@@ -189,7 +192,11 @@ export const ReceivePage = ({ walletFileName }: ReceivePageProps) => {
-