()
@@ -108,6 +110,7 @@ export const ReceivePage = ({ walletFileName }: ReceivePageProps) => {
}
const fetchNewAddress = async () => {
+ if (rescanInfo.rescanning) return
await getAddressMutation.mutateAsync()
}
@@ -133,7 +136,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')}
@@ -190,7 +193,11 @@ export const ReceivePage = ({ walletFileName }: ReceivePageProps) => {
-