I'm trying to set a button to display only once a particular word ("buy") is present within (ListView) dynamically-generated streamed chat responses from ChatGPT.
Conditional visibility based on text within ChatGPT streamed response
Actions & Logic
I have set the word ("buy") as a local page state variable (string) and attempted to set a conditional value (if/then/else) if my Supabase row contains the word "buy", however I get error "current variable is not valid".
I have also tried setting the word "buy" as a page parameter and setting the conditional value on this - same error.
Any ideas?
Yes
3
8 replies