Checkout UI Extension: Unable to apply note or attribute change

gnikyt
Shopify Expert
4 0 4

Code producing an error of:

 

Uncaught (in promise) InvalidInterceptionRequestError: interceptor result cannot be empty or undefined; behavior must be either "block" or "allow", received "undefined"

Code:

 

 

const applyNoteChange = useApplyNoteChange();

// ...

  async function handleSubmit() {
    const result = await applyNoteChange({
      type: "updateNote",
      note: "test",
    });
    console.log(result);
  }

// ...

<Button onPress={handleSubmit}>Submit</Button>

 

 

 

Capabilities are `api_access` and `network_access`.

 

Even the docs example does not work, any idea?

Reply 1 (1)

harshN
Shopify Partner
4 0 0

you got any success on this ? can we update note attributes like this ?