fix(sms): define toPersianDigits helper function in SmsSettingsPage to fix white screen
Deploy Canina / deploy (push) Successful in 49s

This commit is contained in:
parsa aghaei committed 2026-08-18 18:21:38 +03:30
1 parent c1d380c765
commit 856ac4c8f1
12 files changed
+4238 -4245

No files matched your search

@@ -81,6 +81,12 @@ interface SmsLogStats {
successRate: number;
}
const toPersianDigits = (n: string | number | null | undefined): string => {
if (n === null || n === undefined) return '';
const farsiDigits = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'];
return n.toString().replace(/\d/g, (x) => farsiDigits[parseInt(x, 10)]);
};
export default function SmsSettingsPage() {
const [activeTab, setActiveTab] = useState<'settings' | 'patterns' | 'logs'>('settings');