add site key form

This commit is contained in:
realaravinth
2021-05-03 20:24:03 +05:30
parent 0531a26274
commit 812b0ff2c9
49 changed files with 1253 additions and 597 deletions

View File

@@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
const isBlankString = (event: Event|null, value: string|number, field: string) => {
const isBlankString = (value: string|number, field: string, event?: Event) => {
value = value.toString();
if (!value.replace(/\s/g, '').length) {
if (event) {
if (event !== undefined) {
event.preventDefault();
}
alert(`${field} can't be empty`);