Skip to content

Commit eb72841

Browse files
committed
fix
1 parent f01e594 commit eb72841

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/components/header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const Header = () => {
2929

3030
<div className={styles.right}>
3131
<Button onClick={context.syncTaquito} secondary>
32-
<Secondary>sync</Secondary>
32+
<Secondary>sync {context.activeAccount}</Secondary>
3333
</Button>
3434

3535
<Button onClick={context.toogleNavbar} secondary>

src/components/item-info/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,18 @@ export const ItemInfo = ({
3333
//owners = _.values(_.omitBy(owners, (value, key) => !key.startsWith(token_info.creators[0])))
3434

3535
const soldOutMessage = 'not for sale'
36+
var message = ''
37+
3638
//const notForSale = available > 0 || isNaN(editions)
37-
const message =
39+
try {
40+
message =
3841
available > 0
3942
? 'collect for ' + Number(swaps[0].xtz_per_objkt) / 1000000 + ' tez'
4043
: 'not for sale'
44+
} catch (e) {
45+
console.log(e)
46+
message = 'not for sale'
47+
}
4148

4249
const handleCollect = () => {
4350
if (Tezos == null) {

src/context/HicetnuncContext.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ export default class HicetnuncContextProvider extends Component {
170170
)
171171
},
172172

173+
activeAccount : undefined,
174+
173175
cancel: async (swap_id) => {
174176
return await Tezos.wallet
175177
.at(this.state.objkt)

0 commit comments

Comments
 (0)