Skip to content

Commit e0c2220

Browse files
committed
Address PR feedback: move constant to constant
1 parent 7f04e3a commit e0c2220

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pages/settings/Security/TwoFactorAuth/CopyCodesPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import isLoadingOnyxValue from '@src/types/utils/isLoadingOnyxValue';
3131
import type {TwoFactorAuthPageProps} from './TwoFactorAuthPage';
3232
import TwoFactorAuthWrapper from './TwoFactorAuthWrapper';
3333

34+
const TWO_FACTOR_AUTH_RECOVERY_CODES_FILENAME = 'DO-NOT-DELETE_Expensify-2FA-RecoveryCodes.txt';
35+
3436
function CopyCodesPage({route}: TwoFactorAuthPageProps) {
3537
const icons = useMemoizedLazyExpensifyIcons(['Copy', 'Download']);
3638
const styles = useThemeStyles();
@@ -147,7 +149,7 @@ function CopyCodesPage({route}: TwoFactorAuthPageProps) {
147149
text={translate('common.download')}
148150
icon={icons.Download}
149151
onPress={() => {
150-
localFileDownload('DO-NOT-DELETE_Expensify-2FA-RecoveryCodes.txt', account?.recoveryCodes ?? '', translate, undefined, undefined, false);
152+
localFileDownload(TWO_FACTOR_AUTH_RECOVERY_CODES_FILENAME, account?.recoveryCodes ?? '', translate, undefined, undefined, false);
151153
setError('');
152154
setCodesAreCopied();
153155
announceStatus(translate('fileDownload.success.title'));

0 commit comments

Comments
 (0)