mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-28 12:36:41 +07:00
passing address to saveRequest
This commit is contained in:
parent
47e4f4a97d
commit
fc1bac528a
5 changed files with 12 additions and 3 deletions
|
@ -9,4 +9,4 @@ export const toHours = (info) => {
|
|||
};
|
||||
|
||||
|
||||
export const toTranslit = string => ru.reduce((text, el, i) => (text.replace(new RegExp(ru[i], 'g'), en[i])), string);
|
||||
export const toTranslit = string => ru.reduce((text, el, i) => (text.replace(new RegExp(ru[i], 'g'), en[i])), (String(string) || ''));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue