mirror of
https://github.com/abdellahaski/AngularFirebaseVotingApp.git
synced 2025-12-08 11:19:56 +00:00
Code Cleanup
This commit is contained in:
@@ -28,8 +28,8 @@ export class VotesService {
|
|||||||
addVote(vote: Vote): void {
|
addVote(vote: Vote): void {
|
||||||
this.voteRef.add({ ...vote });
|
this.voteRef.add({ ...vote });
|
||||||
}
|
}
|
||||||
vote(candidateID: number): void {
|
|
||||||
|
|
||||||
|
vote(candidateID: number): void {
|
||||||
try {
|
try {
|
||||||
this.ipGeoLocationService.getIP().subscribe((IPData: any) => {
|
this.ipGeoLocationService.getIP().subscribe((IPData: any) => {
|
||||||
const vote: Vote = {
|
const vote: Vote = {
|
||||||
@@ -51,9 +51,6 @@ export class VotesService {
|
|||||||
};
|
};
|
||||||
this.addVote(vote);
|
this.addVote(vote);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user