I think that if you manage it with storages, it would work for you, something that if it meets certain parameters, show the modal because if it is possible, now if you combine them together with the byte code, it may give you problems, if you put an external conditional it works for you