nhsx / antibody-web

Web application for finger prick covid19 antibody Lateral Flow Tests (LFT) and interpreting results
MIT License
28 stars 10 forks source link

[LDAT-146] Fix infinite putting of images #85

Closed danielburnley closed 4 years ago

danielburnley commented 4 years ago

Context

When uploading a photo, although they were uploaded successfully - it would loop infinitely. Investigation showed that this was due to the change where testApi was now the result of a function call, not just a reference. This meant every render things were changing - and causing the request to send again.

Changes proposed in this pull request

Guidance to review

Link to Jira task

https://bluesquirrel.atlassian.net/browse/LDAT-146