This pull request addresses issue #307 .
This PR solves the issue with textfield_tags where error "String' has no instance named 'isValidTag" was thrown after a tag was entered in the textfield.
Changes:-
Defines an inline function validateTag() within the scope of the validator.
Encapsulates the validation logic within this function.
Provides better encapsulation and organization of validation logic, enhancing readability and maintainability.
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Test manually on physical device.
Before:
After
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have checked my code and corrected any misspellings
Maintainer Checklist
[ ] closes #xxxx (Replace xxxx with the GitHub issue number)
Description
This pull request addresses issue #307 . This PR solves the issue with textfield_tags where error "String' has no instance named 'isValidTag" was thrown after a tag was entered in the textfield.
Changes:- Defines an inline function validateTag() within the scope of the validator. Encapsulates the validation logic within this function. Provides better encapsulation and organization of validation logic, enhancing readability and maintainability.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Test manually on physical device. Before:
After
![after](https://github.com/AOSSIE-Org/Resonate/assets/136071018/44ad226f-f51d-4514-b3fb-4f3725d4b13d)
Checklist:
Maintainer Checklist