()
| 4 | import { getConfig } from 'lib/utils/config.js'; |
| 5 | |
| 6 | function getVersionUnsupportedError(): string { |
| 7 | const actionRequestMessage = isDesktopPlatform( |
| 8 | getConfig().platformDetails.platform, |
| 9 | ) |
| 10 | ? 'Please reload the app' |
| 11 | : 'Please refresh the page'; |
| 12 | return ( |
| 13 | 'Your app version is pretty old, and the server doesn’t know how ' + |
| 14 | `to speak to it anymore. ${actionRequestMessage}.` |
| 15 | ); |
| 16 | } |
| 17 | |
| 18 | function getBackupIsNewerThanAppError(): string { |
| 19 | const actionRequestMessage = isDesktopPlatform( |
no test coverage detected