Added api vytal fetch to location block
This commit is contained in:
parent
e7af71646b
commit
6611007288
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ const LocationBlock = () => {
|
|||
const [display, setDisplay] = useState('');
|
||||
|
||||
useEffect(() => {
|
||||
fetch('http://ip-api.com/json')
|
||||
fetch('https://api.vytal.io/ip/')
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
setLocationData(data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue