Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
clear results on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Whitton committed Apr 2, 2018
1 parent cfb32bf commit faa1d70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export default Controller.extend({
}),

lookup: task(function*(address) {
this.setProperties({reps: null, address: null, districts: null});

let response = yield fetch(`${config.API}/${config.API_NAMESPACE}/v1/lookup?address=${address}`);
let {reps, normalizedInput, districts, error} = yield response.json();
if (error) {
Expand Down

0 comments on commit faa1d70

Please sign in to comment.