fix formatting
Some checks failed
checks-impure / test (pull_request) Successful in 31s
checks / test (pull_request) Failing after 2m16s

This commit is contained in:
erdemarslan
2023-12-09 18:36:24 +01:00
parent 647fc33acd
commit 01ce85bb15
4 changed files with 44 additions and 32 deletions

View File

@@ -22,7 +22,9 @@ export default function AccessPoint() {
.then((resp) => .then((resp) =>
resp.json().then((jsonData) => { resp.json().then((jsonData) => {
console.log(jsonData); console.log(jsonData);
jsonData.length > 0 ? setRepositoryData(jsonData) : setRepositoryData(APServiceRepositoryDummyData); jsonData.length > 0
? setRepositoryData(jsonData)
: setRepositoryData(APServiceRepositoryDummyData);
}), }),
) )
.then() .then()

View File

@@ -23,7 +23,9 @@ export default function Client1() {
.then((resp) => .then((resp) =>
resp.json().then((jsonData) => { resp.json().then((jsonData) => {
console.log(jsonData); console.log(jsonData);
jsonData.length > 0 ? setConsumerData(jsonData) : setConsumerData(Client1ConsumerData); jsonData.length > 0
? setConsumerData(jsonData)
: setConsumerData(Client1ConsumerData);
}), }),
) )
.then() .then()
@@ -36,7 +38,9 @@ export default function Client1() {
.then((resp) => .then((resp) =>
resp.json().then((jsonData) => { resp.json().then((jsonData) => {
console.log(jsonData); console.log(jsonData);
jsonData.length > 0 ? setProducerData(jsonData) : setProducerData(Client1ProducerData); jsonData.length > 0
? setProducerData(jsonData)
: setProducerData(Client1ProducerData);
}), }),
) )
.then() .then()

View File

@@ -23,7 +23,9 @@ export default function Client1() {
.then((resp) => .then((resp) =>
resp.json().then((jsonData) => { resp.json().then((jsonData) => {
console.log(jsonData); console.log(jsonData);
jsonData.length > 0 ? setConsumerData(jsonData) : setConsumerData(Client2ConsumerData); jsonData.length > 0
? setConsumerData(jsonData)
: setConsumerData(Client2ConsumerData);
}), }),
) )
.then() .then()
@@ -36,7 +38,9 @@ export default function Client1() {
.then((resp) => .then((resp) =>
resp.json().then((jsonData) => { resp.json().then((jsonData) => {
console.log(jsonData); console.log(jsonData);
jsonData.length > 0 ? setProducerData(jsonData) : setProducerData(Client2ProducerData); jsonData.length > 0
? setProducerData(jsonData)
: setProducerData(Client2ProducerData);
}), }),
) )
.then() .then()

View File

@@ -17,7 +17,9 @@ export default function Home() {
.then((resp) => .then((resp) =>
resp.json().then((jsonData) => { resp.json().then((jsonData) => {
console.log(jsonData); console.log(jsonData);
jsonData.length > 0 ? setHomeData(jsonData) : setHomeData(HomeDummyData); jsonData.length > 0
? setHomeData(jsonData)
: setHomeData(HomeDummyData);
}), }),
) )
.then() .then()