Skip to content

The open alternative to Salesforce, designed for AI.

334 B
Raw Blame
import { isNonEmptyString, isUndefined } from '@sniptt/guards';

export const getIsApplicationVariableConfigured = ({
  draftValue,
  storedValue,
}: {
  draftValue: string | undefined;
  storedValue: string | undefined;
}): boolean =>
  isUndefined(draftValue)
    ? isNonEmptyString(storedValue)
    : isNonEmptyString(draftValue);