Skip to content

Commit bf3433a

Browse files
committed
convert instead of cast
1 parent 3c9b08b commit bf3433a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/Middleware/FraudMonitoring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const createNewAccountCountSignal: FraudSignalFactory = (_, responseData) => {
1919
if (!responseData?.newAccountCount) {
2020
return undefined;
2121
}
22-
return {event: FRAUD_PROTECTION_EVENT.NEW_EMAILS_INVITED, attribute: {key: 'new_account_count', value: responseData.newAccountCount as string}};
22+
return {event: FRAUD_PROTECTION_EVENT.NEW_EMAILS_INVITED, attribute: {key: 'new_account_count', value: String(responseData.newAccountCount)}};
2323
};
2424

2525
const fraudSignalFactoryByApiCommand: Record<string, FraudSignalFactory> = {

0 commit comments

Comments
 (0)