#isNotEmpty used on other values i a form?

2 messages · Page 1 of 1 (latest)

trim elm
#
import "@mantine/core/styles.css";
import { MantineProvider } from "@mantine/core";

const functions = {
  v: (value: any, values: Record<string, any> | undefined) => {
    if (value && values && values.begged && values.mapped_to) {
      return "something";
    }
  },
};
export default function App() {
  return (
    <MantineProvider>
      {functions.v("a", { begged: "b", mapped_to: "c" })}
    </MantineProvider>
  );
}
#

check this in the sandbox. Is this what you are looking for?