Skip to content
Snippets Groups Projects
Unverified Commit b50e38d7 authored by Tasso Evangelista's avatar Tasso Evangelista Committed by GitHub
Browse files

Chore: Move isJSON helper (#23491)

parent 3f2496af
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,8 @@ import {
} from '@rocket.chat/fuselage';
import React, { useState, useCallback } from 'react';
import { isJSON } from '../../../../app/utils/lib/isJSON';
import { isEmail } from '../../../../lib/utils/isEmail';
import { isJSON } from '../../../../lib/utils/isJSON';
import Page from '../../../components/Page';
import { useTranslation } from '../../../contexts/TranslationContext';
......
export const isJSON = (value) => {
export const isJSON = (value: string): boolean => {
try {
return !!JSON.parse(value);
} catch {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment