tf-checkout-react 1.4.16 → 1.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.16",
2
+ "version": "1.4.17",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -114,8 +114,8 @@ export const MyTicketsContainer = ({
114
114
  return (
115
115
  <div className={`my-ticket ${theme}`}>
116
116
  <>
117
- {showModalLogin ||
118
- (!isLogged && openLoginModal ? (
117
+ {showModalLogin || !isLogged ? (
118
+ openLoginModal ? (
119
119
  openLoginModal()
120
120
  ) : (
121
121
  <LoginModal
@@ -130,7 +130,8 @@ export const MyTicketsContainer = ({
130
130
  userExpired={userExpired}
131
131
  logo={logo}
132
132
  />
133
- ))}
133
+ )
134
+ ) : null}
134
135
  </>
135
136
  {data?.orders?.length ? (
136
137
  <>
@@ -12,7 +12,7 @@ const EventInfoItem = ({ image, name }: EventInfoTypes) => (
12
12
  const tableConfig = (columns?: IColumnData[], key?: string) => {
13
13
  let config
14
14
 
15
- if (columns) {
15
+ if (columns?.length) {
16
16
  return {
17
17
  header: _map(columns, item => item.label),
18
18
  body: _map(columns, item => {